import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', () => {
    const userinfo=ref({
        name:'',
        pwd:'',
    })
  return {userinfo}

},
    {
    persist: {
        storage: sessionStorage,
        }
    }
)